package com.wt.chat.service;

import com.wt.chat.entity.Dialog;
import com.wt.chat.model.DialogModel;
import com.wt.chat.query.PageQuery;

import java.util.List;

/**
 * @description
 * @author: wangtao
 * @date:13:43 2019/11/12
 * @email:taow02@jumei.com
 */
public interface DialogService {
	/**
	 * 查询当前会话，也就是未关闭的会话
	 * @param condition
	 * @return
	 */
	List<DialogModel> currentDialog(Dialog condition);

	/**
	 * 查询历史会话，也就是已经关闭的会话
	 * @param condition
	 * @param pageQuery
	 * @return
	 */
	List<DialogModel> historyDialog(Dialog condition, PageQuery pageQuery);

	/**
	 * 进线
	 * @param dialog
	 */
	void inQueue(Dialog dialog);

	/**
	 * 关闭会话
	 * @param dialog
	 */
	void close(Dialog dialog);
}
